<%@ page import="hotsaucerecipes.User" %>



<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'login', 'error')} required">
    <label for="login">
        <g:message code="user.login.label" default="Login"/>
        <span class="required-indicator">*</span>
    </label>
    <g:textField name="login" required="" value="${userInstance?.login}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'password', 'error')} required">
    <label for="password">
        <g:message code="user.password.label" default="Password"/>
        <span class="required-indicator">*</span>
    </label>
    <g:field type="password" name="password" required="" value="${userInstance?.password}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'role', 'error')} ">
    <label for="role">
        <g:message code="user.role.label" default="Role"/>

    </label>
    <g:select name="role" from="${userInstance.constraints.role.inList}" value="${userInstance?.role}"
              valueMessagePrefix="user.role" noSelection="['': '']"/>
</div>

